#include "odn_phys_PointObject.h"

namespace ouden
{
	namespace physics
	{
		
		//Public
		
		//Constructor to create a new point object 
		ODN_PointObject::ODN_PointObject(Vector3D Pos, float Radius)		
		{
			//Create a basic model consisting of a single point and a circle collider attached to it 
			//TODO: Dynamic point? 
			singlepoint = addPoint( ODN_Point(Pos) );
			addCollider( new ODN_CircleCollider(singlepoint, Radius) );	
		}
		
		
		//Constructor to attatch the point object to an already existent point 
		ODN_PointObject(ODN_Point* Point, float Radius)		
		{
			//Set the single point to point to the given point and create a circle collider 
			singlepoint = addExistingPoint(Point);
			addCollider( new ODN_CircleCollider(Point, Radius) );
		}
		
		
	} //namespace physics
} //namespace ouden
